package com.fadadianqi.logistics.customer.model;

import com.fadadianqi.commons.BaseObject;

import java.util.Date;

public class MsgQueue extends BaseObject {

    /**
     *
     */
    private static final long serialVersionUID = -6549287094129170203L;

    public static final int STATUS_ALREADY = 0; // 准备好发送
    public static final int STATUS_DO = 1;
    public static final int STATUS_CANCEL = 2; // 取消发送
    public static final int STATUS_SUCCEED = 3; // 发送成功
    public static final int STATUS_FAILED = 4; // 发送失败
    public static final int STATUS_SENDING = 5; // 正在发送

    private String msgJobId;
    private String customerId;
    private String mobile;
    private String content;
    private int status = STATUS_ALREADY;
    private Date addTime; // 消息创建时间
    private Date endTime; // 任务结束日期 超过次日期的短信将不再尝试发送
    private Date updateTime; // 发出时间/或失败时间

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getMsgJobId() {
        return msgJobId;
    }

    public void setMsgJobId(String msgJobId) {
        this.msgJobId = msgJobId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
